package Dijkstra旅途美女搭讪.测试;

public class Tools {

	// public static void main(String[] args) {
	// int[][] a = { { 1, 2 }, { 3, 4 } };
	// print2DArray(a);
	// }

	public void print2DArray(int[][] a) {
		int x = a.length;
		int y = a[0].length;
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < x; i++) {
			for (int j = 0; j < y; j++) {
				sb.append(a[i][j]).append(" ");
			}
			sb.append("\n");
		}
		System.out.println("\n" + sb);
	}

}
